package com.ruoyi.constant.v3;

/**
 * 整改填报流程状态
 *
 * @author: Gao Tianle
 * @date: 2024-04-18 14:35
 **/
public enum WtZgtbV3Enum {

    XIAN_TB(1,"县填报"),
    XIAN_XH(2,"县销号"),
    XIAN_SB_SHI(3,"县上报市"),
    SHI_SHENGHE_TG(4,"市审核通过"),
    SHI_SHENGHE_BTG(5,"市审核不通过"),
    SHI_XH(6,"市销号"),
    SHI_SB_SHENG(7,"市上报省"),
    SHENG_SHENGHE_TG(8,"省审核通过"),
    SHENG_SHENGHE_BTG(9,"省审核不通过"),
    SHENG_XH(10,"省销号");

    private final Integer code;
    private final String desc;

    WtZgtbV3Enum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDescByCode(Integer code) {
        for (WtZgtbV3Enum value : WtZgtbV3Enum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
